import SycmBrandAnalysisCateTradeApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandAnalysisCateTradeApp.vue";
import SycmBrandAnalysisSaleApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandAnalysisSaleApp.vue";
import SycmBrandAnalysisTopApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandAnalysisTopApp.vue";
import SycmBrandAnalysisTopShopApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandAnalysisTopShopApp.vue";
import SycmBrandBuyerPreferencesApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandBuyerPreferencesApp.vue";
import SycmBrandCustomerAttributePortraitApp
    from "~/contentScripts/views/sycm/brand_monitor/SycmBrandCustomerAttributePortraitApp.vue";
import SycmBrandCustomerTrendsApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandCustomerTrendsApp.vue";
import SycmBrandMonitorApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandMonitorApp.vue";
import SycmBrandPayPreferencesApp from "~/contentScripts/views/sycm/brand_monitor/SycmBrandPayPreferencesApp.vue";
import SycmBrandRecognitionIdentifyApp
    from "~/contentScripts/views/sycm/brand_monitor/SycmBrandRecognitionIdentifyApp.vue";
import SycmBrandRecognitionTrendAnalysisApp
    from "~/contentScripts/views/sycm/brand_monitor/SycmBrandRecognitionTrendAnalysisApp.vue";
import SycmCustomerAnalysisCustomerGroupApp
    from "~/contentScripts/views/sycm/customer_analysis/SycmCustomerAnalysisCustomerGroupApp.vue";
import SycmCustomerAnalysisCustomerGroupTrendsApp
    from "~/contentScripts/views/sycm/customer_analysis/SycmCustomerAnalysisCustomerGroupTrendsApp.vue";
import SycmCustomerEquityApp from "~/contentScripts/views/sycm/customer_overview/SycmCustomerEquityApp.vue";
import SycmCustomerOverviewApp from "~/contentScripts/views/sycm/customer_overview/SycmCustomerOverviewApp.vue";
import SycmFlowMonitorOverviewApp
    from "~/contentScripts/views/sycm/flow_monitor_overview/SycmFlowMonitorOverviewApp.vue";
import SycmFrameTradeOverviewApp from "~/contentScripts/views/sycm/frame_trade_overview/SycmFrameTradeOverviewApp.vue";
import SycmCustomerGroupTrendApp from "~/contentScripts/views/sycm/industry_customer/SycmCustomerGroupTrendApp.vue";
import SycmIndustryCustomerPayPreferencesApp
    from "~/contentScripts/views/sycm/industry_customer/SycmIndustryCustomerPayPreferencesApp.vue";
import SycmIndustryCustomerPortraitApp
    from "~/contentScripts/views/sycm/industry_customer/SycmIndustryCustomerPortraitApp.vue";
import SycmIndustryCustomerPurchasePreferencesApp
    from "~/contentScripts/views/sycm/industry_customer/SycmIndustryCustomerPurchasePreferencesApp.vue";
import SycmSearchCustomerAttributePortraitApp
    from "~/contentScripts/views/sycm/industry_customer/SycmSearchCustomerAttributePortraitApp.vue";
import SycmItemAnalysisFlowApp from "~/contentScripts/views/sycm/item_monitor/SycmItemAnalysisFlowApp.vue";
import SycmItemAnalysisKeywordApp from "~/contentScripts/views/sycm/item_monitor/SycmItemAnalysisKeywordApp.vue";
import SycmItemAnalysisKPIApp from "~/contentScripts/views/sycm/item_monitor/SycmItemAnalysisKPIApp.vue";
import SycmItemRecognitionFlowApp from "~/contentScripts/views/sycm/item_monitor/SycmItemRecognitionFlowApp.vue";
import SycmItemRecognitionSearchApp from "~/contentScripts/views/sycm/item_monitor/SycmItemRecognitionSearchApp.vue";
import SycmShopItemMonitorApp from "~/contentScripts/views/sycm/item_monitor/SycmShopItemMonitorApp.vue";
import SycmItemRankApp from "~/contentScripts/views/sycm/item_rank/App.vue";
import SycmMarketRankApp from "~/contentScripts/views/sycm/market_monitor/SycmMarketRankApp.vue";
import SycmMcSearchRankApp from "~/contentScripts/views/sycm/market_monitor/SycmMcSearchRankApp.vue";
import SycmMyMonitorApp from "~/contentScripts/views/sycm/market_monitor/SycmMyMonitorApp.vue";
import SycmPopularArtifactApp from "~/contentScripts/views/sycm/market_monitor/SycmPopularArtifactApp.vue";
import SycmZshsApp from "~/contentScripts/views/sycm/market_monitor/SycmZshsApp.vue";
import SycmMcMqOverviewBoardApp from "~/contentScripts/views/sycm/mc_mq_overview/SycmMcMqOverviewBoardApp.vue";
import SycmMcMqOverviewChildCateApp from "~/contentScripts/views/sycm/mc_mq_overview/SycmMcMqOverviewChildCateApp.vue";
import SycmMcMqOverviewChildCateRegionApp
    from "~/contentScripts/views/sycm/mc_mq_overview/SycmMcMqOverviewChildCateRegionApp.vue";
import SycmMcMqOverviewChildCateSellApp
    from "~/contentScripts/views/sycm/mc_mq_overview/SycmMcMqOverviewChildCateSellApp.vue";
import SycmAnalysisCategoryApp from "~/contentScripts/views/sycm/search_analyze/SycmAnalysisCategoryApp.vue";
import SycmAnalysisOfRelatedWordsApp
    from "~/contentScripts/views/sycm/search_analyze/SycmAnalysisOfRelatedWordsApp.vue";
import SycmAnalysisOverviewApp from "~/contentScripts/views/sycm/search_analyze/SycmAnalysisOverviewApp.vue";
import SycmShopAnalysisCateTradeApp from "~/contentScripts/views/sycm/shop_analysis/SycmShopAnalysisCateTradeApp.vue";
import SycmShopAnalysisFlowApp from "~/contentScripts/views/sycm/shop_analysis/SycmShopAnalysisFlowApp.vue";
import SycmShopAnalysisSaleApp from "~/contentScripts/views/sycm/shop_analysis/SycmShopAnalysisSaleApp.vue";
import SycmShopAnalysisTopApp from "~/contentScripts/views/sycm/shop_analysis/SycmShopAnalysisTopApp.vue";
import SycmShopMonitorApp from "~/contentScripts/views/sycm/shop_monitor/SycmShopMonitorApp.vue";
import SycmShopRecognitionIdentifyApp
    from "~/contentScripts/views/sycm/shop_recognition/SycmShopRecognitionIdentifyApp.vue";
import SycmShopRecognitionTopLostApp
    from "~/contentScripts/views/sycm/shop_recognition/SycmShopRecognitionTopLostApp.vue";
import SycmShopRecognitionTrendAnalysisApp
    from "~/contentScripts/views/sycm/shop_recognition/SycmShopRecognitionTrendAnalysisApp.vue";
import SycmEntryApp from "~/contentScripts/views/sycm/SycmEntryApp.vue";
import DetailApp from '~/contentScripts/views/tao/detail/App.vue'
import taoSearchApp from '~/contentScripts/views/tao/list/App.vue'
import shopQianApp from '~/contentScripts/views/qian/shop/App.vue'

import shopCategoryApp from '~/contentScripts/views/tao/shopCategory/App.vue'
import WxtListApp from "~/contentScripts/views/wxt/WxtListApp.vue";
import WxtMainApp from "~/contentScripts/views/wxt/WxtMainApp.vue";
import {TaoItem} from "~/utils/ali/TaoItem";
import {TmailItem} from "~/utils/ali/TmailItem";
import brandCustomerInterception from "~/utils/interception/sycm/brandCustomerInterception";
import customerOverviewInterception from "~/utils/interception/sycm/customerOverviewInterception";
import FlowMonitorOverviewInterception from "~/utils/interception/sycm/flowMonitorOverviewInterception";
import {industryCustomerInterception} from "~/utils/interception/sycm/industryCustomerInterception";
import {searchAnalyzeInterception} from "~/utils/interception/sycm/searchAnalyzeInterception";
import shopMonitorListShopPage from "~/utils/interception/sycm/shopMonitorListShopPage";
import RenderOption, {InsertType, Platform, PlatformAuth} from "~/utils/render/renderOption";

const renderOptions: RenderOption[] = [
    { // 店铺商品列表
        url: 'taobao.com',
        containerSelector: '#bd .J_TLayout',
        component: shopCategoryApp,
        insertType: InsertType.append,
        style: {
            flex: 1,
        },
        platform: Platform.TaoBao,
    },
    { // 店铺商品列表
        url: 'tmall.com',
        containerSelector: '#bd .J_TLayout',
        component: shopCategoryApp,
        insertType: InsertType.append,
        style: {
            flex: 1,
        },
        platform: Platform.Tmall,
    },
    { // 新版搜索页
        url: '//s.taobao.com',
        containerSelector: '[class^=Tab--tabWrap--]',
        component: taoSearchApp,
        insertType: InsertType.append,
        style: {
            flex: 1,
        },
        platform: Platform.TaoBao,
    },
    { // 新版搜索页
        url: '//s.taobao.com',
        containerSelector: '#mainsrp-nav > div > div',
        component: taoSearchApp,
        insertType: InsertType.append,
        style: {
            flex: 1,
        },
        platform: Platform.TaoBao,
    },
    { // 天猫详情页
        url: '//detail.tmall.com',
        containerSelector: '.Item2024--main--2ftt7Qu > .pageContentWrap',
        // containerSelector: '[class^=Item--content--]',
        component: DetailApp,
        insertType: InsertType.prepend,
        style: {
            flex: 1,
            width: '100%',
            padding: '0 10px',
            boxSizing: 'border-box',
        },
        customApp: (app) => {
            app.config.globalProperties.$item = new TmailItem();
            return app;
        },
        platform: Platform.Tmall,
    },
    { // 淘宝详情页
        url: '//item.taobao.com',
        // containerSelector: '[class^=pageContentWrap]', //#bd,
        containerSelector: '.Item2024--main--2ftt7Qu > .pageContentWrap', //#bd,
        // containerSelector: '[class^=Item--content--]', //#bd,
        component: DetailApp,
        insertType: InsertType.prepend,
        style: {
            flex: 1,
            width: '100%',
            padding: '0 10px',
            boxSizing: 'border-box',
        },
        customApp: (app) => {
            app.config.globalProperties.$item = new TaoItem();
            return app;
        },
        platform: Platform.TaoBao,
    },
    // 千牛
    { 
        url: '//myseller.taobao.com',
        containerSelector: '.next-loading-wrap > #config-list-batch-message',
        component: shopQianApp,
        insertType: InsertType.prepend,
        style: {
        flex: 1,
        width: '100%',
        padding: '0 10px',
        boxSizing: 'border-box',
        },
        customApp: (app) => {
       app.config.globalProperties.$item = new TmailItem();
        return app;
        },
        platform: Platform.Qiniu,
         },
    { // 生意参谋 插件开关
        url: '//sycm.taobao.com/',
        containerSelector: 'body',
        component: SycmEntryApp,
        insertType: InsertType.append,
        style: {
            position: 'fixed',
            top: '400px',
            right: '5px',
            zIndex: 999999,
        },
        noCheckSwitch: true,
        platform: Platform.Sycm,
    },
    {// 生意参谋-流量看板-流量总览
        url: '//sycm.taobao.com/flow/monitor/overview',
        containerSelector: '#flow-overview-floor-summary > div > div > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmFlowMonitorOverviewApp,
        insertType: InsertType.append,
        interceptions: FlowMonitorOverviewInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-品类-商品排行
        url: '//sycm.taobao.com/cc/item_rank',
        containerSelector: '#item-rank > div.oui-card-header-wrapper > div.oui-card-header > div.oui-card-header-item.oui-card-header-item-pull-right',
        component: SycmItemRankApp,
        insertType: InsertType.prepend,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-客户-客户概览
        url: 'sycm.taobao.com/cc/customer/overview',
        containerSelector: '.pro-layout-block-cell:nth-child(1) div.pro-layout-card-header__content > div.pro-layout-card-header__ft',
        component: SycmCustomerOverviewApp,
        insertType: InsertType.prepend,
        interceptions: customerOverviewInterception,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            return app;
        },
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-客户-店铺客户资产
        url: '//sycm.taobao.com/cc/customer/overview',
        containerSelector: '.pro-layout-block-cell:nth-child(2) div.pro-layout-card-header__content > div.pro-layout-card-header__ft',
        component: SycmCustomerEquityApp,
        insertType: InsertType.prepend,
        interceptions: customerOverviewInterception,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-流量看板-流量总览 外框
        url: '//sycm.taobao.com/fa/frame/trade_overview',
        containerSelector: '#content-container',
        component: SycmFrameTradeOverviewApp,
        insertType: InsertType.prepend,
        style: {},
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-流量看板-流量总览 内部
        url: '//sycm.taobao.com/bda/tradinganaly/overview/overview.htm',
        containerSelector: '#trading-interpretion > div > div.navbar > div',
        component: SycmFrameTradeOverviewApp,
        insertType: InsertType.prepend,
        style: {
            display: 'inline-block',
            lineHeight: 5,
        },
        platform: Platform.Sycm,
        // platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-监控看板-我的监控 一键转化
        url: '//sycm.taobao.com/mc/mq/market_monitor',
        containerSelector: '.mc-marketMonitor div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmMyMonitorApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-监控看板-我的监控 指数换算

        url: '//sycm.taobao.com/mc/mq/market_monitor',
        containerSelector: '.mc-marketMonitor div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.mc-marketMonitor');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-监控看板-行业监控 指数换算
        url: '//sycm.taobao.com/mc/mq/market_monitor',
        containerSelector: '.op-mc-market-monitor-industryCard div.oui-card-header-wrapper > div.oui-card-header > div.oui-card-header-item.oui-card-header-item-pull-right',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '.op-mc-market-monitor-industryCard');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘 一键转化
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '#sycm-mc-mq-cate-trend > div.oui-card-header-wrapper > div.cardHeader.oui-card-header',
        component: SycmMcMqOverviewBoardApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘 指数转换
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '#sycm-mc-mq-cate-trend > div.oui-card-header-wrapper > div.cardHeader.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        key: 2,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-mq-cate-trend');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘 行业构成
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '#sycm-mc-mq-cate-constitute > div.oui-card-header-wrapper > div.cardHeader.oui-card-header > div.oui-card-header-item.oui-card-header-item-pull-right',
        component: SycmMcMqOverviewChildCateApp,
        insertType: InsertType.prepend,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘-卖家概况 子行业分布
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div:nth-child(2) > div:nth-child(4) > div.oui-card-content > h4:nth-child(1)',
        component: SycmMcMqOverviewChildCateSellApp,
        insertType: InsertType.append,
        style: {
            marginRight: '10px',
            display: 'inline-block',
            float: 'right',
        },
        key: 2,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘-卖家概况 地域分布
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div:nth-child(2) > div:nth-child(4) > div.oui-card-content > h4:nth-child(3)',
        component: SycmMcMqOverviewChildCateRegionApp,
        insertType: InsertType.append,
        style: {
            marginRight: '10px',
            display: 'inline-block',
            float: 'right',
        },
        key: 3,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场大盘 指数换算
        url: '//sycm.taobao.com/mc/mq/overview',
        containerSelector: '#sycm-mc-mq-cate-constitute > div.oui-card-header-wrapper > div.cardHeader.oui-card-header > div.oui-card-header-item.oui-card-header-item-pull-right',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-mq-cate-constitute');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场排行 爆款神器
        url: '//sycm.taobao.com/mc/mq/market_rank',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.ebase-FaCommonFilter-module__root > div > div > div > div > div.ebase-FaCommonFilter-module__bottom > div.ebase-FaCommonFilter-module__right',
        component: SycmPopularArtifactApp,
        insertType: InsertType.prepend,
        style: {
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场排行 指数换算
        url: '//sycm.taobao.com/mc/mq/market_rank',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.ebase-FaCommonFilter-module__root > div > div > div > div > div.ebase-FaCommonFilter-module__bottom > div.ebase-FaCommonFilter-module__right',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        style: {
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.oui-card');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-市场排行 一键转化
        url: '//sycm.taobao.com/mc/mq/market_rank',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.ebase-FaCommonFilter-module__root > div > div > div > div > div.ebase-FaCommonFilter-module__bottom > div.ebase-FaCommonFilter-module__right',
        component: SycmMarketRankApp,
        insertType: InsertType.prepend,
        style: {
            display: 'inline-block',
        },
        key: 3,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索排行 指数换算
        url: '//sycm.taobao.com/mc/mq/search_rank',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.ebase-FaCommonFilter-module__root > div > div > div > div > div.ebase-FaCommonFilter-module__bottom > div.ebase-FaCommonFilter-module__right',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        style: {
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '.oui-card');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索排行 搜索排行 一键转换
        url: '//sycm.taobao.com/mc/mq/search_rank',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.ebase-FaCommonFilter-module__root > div > div > div > div > div.ebase-FaCommonFilter-module__bottom > div.ebase-FaCommonFilter-module__right',
        component: SycmMcSearchRankApp,
        insertType: InsertType.prepend,
        key: 1,
        style: {
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {   // 搜索分析 概览一键转换
        url: '//sycm.taobao.com/mc/mq/search_analyze',
        containerSelector: '.sycm-mc-search-analyze-container .oui-card-header-wrapper',
        interceptions: searchAnalyzeInterception,
        component: SycmAnalysisOverviewApp,
        insertType: InsertType.prepend,
        condition: () => {
            return document.querySelector("span.oui-tab-switch-item:nth-child(1)")?.className.includes('oui-tab-switch-item-active') || false;
        },
        key: 3,
        style: {
            float: 'right',
            marginRight: '10px',
            marginLeft: '10px',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {  // 搜索分析 相关分析 一键转化 生成标题
        url: '//sycm.taobao.com/mc/mq/search_analyze',
        containerSelector: '[id^=__qiankun_microapp_wrapper_for_op_mc] > div > div > div > div > div.oui-card > div.oui-card-header-wrapper',
        component: SycmAnalysisOfRelatedWordsApp,
        insertType: InsertType.prepend,
        condition: () => {
            return document.querySelector("span.oui-tab-switch-item:nth-child(2)")?.className.includes('oui-tab-switch-item-active') || false;
        },
        key: 1,
        style: {
            float: 'right',
            marginRight: '10px',
            marginLeft: '10px',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {   // 搜索分析 类目构成一键转换
        url: '//sycm.taobao.com/mc/mq/search_analyze',
        containerSelector: '.sycm-mc-search-analyze-container .oui-card-header-wrapper',
        interceptions: searchAnalyzeInterception,
        component: SycmAnalysisCategoryApp,
        insertType: InsertType.prepend,
        condition: () => {
            return document.querySelector("span.oui-tab-switch-item:nth-child(3)")?.className.includes('oui-tab-switch-item-active') || false;
        },
        key: 3,
        style: {
            float: 'right',
            marginRight: '10px',
            marginLeft: '10px',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索分析 指数换算 三个TAB(概览 相关分析 类目构成)都是用的这个匹配
        url: '//sycm.taobao.com/mc/mq/search_analyze',
        containerSelector: '.sycm-mc-search-analyze-container .oui-card-header-wrapper',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        key: 1,
        style: {
            float: 'right',
            marginRight: '10px',
            marginLeft: '10px',
        },
        customApp: (app) => {
            app.provide('selectorPix', '.sycm-mc-search-analyze-container');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控商品 一键转换
        url: '//sycm.taobao.com/mc/ci/item/monitor',
        containerSelector: '#completeItem div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmShopItemMonitorApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控商品 指数换算
        url: '//sycm.taobao.com/mc/ci/item/monitor',
        containerSelector: '#completeItem div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#completeItem');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-监控店铺 一键转化
        url: 'sycm.taobao.com/mc/ci/shop/monitor',
        containerSelector: '#completeShop > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmShopMonitorApp,
        insertType: InsertType.append,
        interceptions: shopMonitorListShopPage,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },

    { // 生意参谋-竞争-监控店铺 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/monitor',
        containerSelector: '#completeShop div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#completeShop');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品识别 流失流量 一键转换
        url: '//sycm.taobao.com/mc/ci/item/recognition',
        containerSelector: 'div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmItemRecognitionFlowApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        customApp: (app) => {
            app.provide('selectorPix', '.oui-card');
            return app;
        },
        condition: () => {
            return document.querySelector("span.oui-tab-switch-item:nth-child(1)")?.className.includes('oui-tab-switch-item-active') || false;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品识别 流失流量 一键转换
        url: '//sycm.taobao.com/mc/ci/item/recognition',
        containerSelector: 'div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmItemRecognitionSearchApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        condition: () => {
            return document.querySelector("span.oui-tab-switch-item:nth-child(2)")?.className.includes('oui-tab-switch-item-active') || false;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品识别 指数换算
        url: '//sycm.taobao.com/mc/ci/item/recognition',
        containerSelector: 'div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 3,
        customApp: (app) => {
            app.provide('selectorPix', '.oui-card');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 关键指标对比 指数换算
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-trend div.oui-card-header',
        component: SycmItemAnalysisKPIApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-item-analysis-trend');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 关键指标对比 指数换算
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-trend div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-item-analysis-trend');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 入店搜索词 指数换算
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-keyword > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmItemAnalysisKeywordApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 入店搜索词 指数换算
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-keyword > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-item-analysis-keyword');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 入店来源 一键转化
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-flow-source-new div.oui-card-header',
        component: SycmItemAnalysisFlowApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞品分析 入店来源 指数换算
        url: '//sycm.taobao.com/mc/ci/item/analysis',
        containerSelector: '#sycm-mc-ci-item-analysis-flow-source-new div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-item-analysis-flow-source-new');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控品牌 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/monitor',
        containerSelector: 'div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmBrandMonitorApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控品牌 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/monitor',
        containerSelector: 'div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.oui-card');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控品牌-品牌识别 高潜品牌识别 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/recognition',
        containerSelector: '#drainRecognition > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmBrandRecognitionIdentifyApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-监控品牌-品牌识别 趋势分析 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/recognition',
        containerSelector: '[id^=op-mc-rival-trend-analysis] > div > div.op-mc-rival-trend-analysis-chart-container > h5',
        component: SycmBrandRecognitionTrendAnalysisApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 关键指标对比 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-trend div.oui-card-header',
        component: SycmBrandAnalysisSaleApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 关键指标对比 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-trend div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-brand-analysis-trend');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 商品榜 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-top-items div.oui-card-header',
        component: SycmBrandAnalysisTopApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 商品榜 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-top-items div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-brand-analysis-top-items');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 店铺榜 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-top-shops div.oui-card-header',
        component: SycmBrandAnalysisTopShopApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 店铺榜 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-top-shops div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-brand-analysis-top-shops');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-品牌对比 店铺榜 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/analysis',
        containerSelector: '#sycm-mc-ci-brand-analysis-tradeTrade > div.oui-card-header-wrapper',
        component: SycmBrandAnalysisCateTradeApp,
        insertType: InsertType.prepend,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 关键指标对比 一键转化
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(1) div.oui-card-header',
        component: SycmShopAnalysisSaleApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 关键指标对比 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(1) div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.sycm-mc-shop-analysis-sale>div:nth-child(1)');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 关键指标对比 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(1) div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.sycm-mc-shop-analysis-sale>div:nth-child(1)');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 流量分析 入店来源 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '#sycm-mc-shop-analysis-flow-source-new > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmShopAnalysisFlowApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-shop-analysis-flow-source-new');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 流量分析 入店来源 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '#sycm-mc-shop-analysis-flow-source-new > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 3,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-shop-analysis-flow-source-new');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 Top商品榜 一键转化
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(2) div.oui-card-header',
        component: SycmShopAnalysisTopApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 Top商品榜 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(2) div.oui-card-header',
        component: SycmZshsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '.sycm-mc-shop-analysis-sale>div:nth-child(2)');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店分析 交易构成
        url: '//sycm.taobao.com/mc/ci/shop/analysis',
        containerSelector: '.sycm-mc-shop-analysis-sale>div:nth-child(3) div.oui-card-header',
        component: SycmShopAnalysisCateTradeApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },

    { // 生意参谋-竞争-竞店识别 流失竞店识别
        url: '//sycm.taobao.com/mc/ci/shop/recognition',
        containerSelector: '#drainRecognition > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmShopRecognitionIdentifyApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店识别 流失竞店识别
        url: '//sycm.taobao.com/mc/ci/shop/recognition',
        containerSelector: '#sycm-mc-ci-shop-recognition-drain-shop-list > div.oui-card-header-wrapper > div.oui-card-header',
        component: SycmShopRecognitionTopLostApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店识别 流失竞店识别
        url: '//sycm.taobao.com/mc/ci/shop/recognition',
        containerSelector: '[id^=op-mc-rival-trend-analysis] > div > div.op-mc-rival-trend-analysis-chart-container > h5',
        component: SycmShopRecognitionTrendAnalysisApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 1,
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞店识别 指数换算
        url: '//sycm.taobao.com/mc/ci/shop/recognition',
        containerSelector: '#sycm-mc-ci-shop-recognition-drain-shop-list > div.oui-card-header-wrapper',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        key: 2,
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-shop-recognition-drain-shop-list');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-行业客群
        url: '//sycm.taobao.com/mc/mq/industry_customer',
        containerSelector: '#sycm-mc-mq-industry-customer-trend > div.oui-card-header-wrapper',
        component: SycmCustomerGroupTrendApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-客群画像
        url: '//sycm.taobao.com/mc/mq/industry_customer',
        containerSelector: '#completeShopPortrait > div.oui-card-header-wrapper',
        component: SycmIndustryCustomerPortraitApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-购买偏好
        url: '//sycm.taobao.com/mc/mq/industry_customer',
        containerSelector: '#completeShopPayment > div.oui-card-header-wrapper',
        component: SycmIndustryCustomerPayPreferencesApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-购买偏好
        url: '//sycm.taobao.com/mc/mq/industry_customer',
        containerSelector: '#completeShopPurchase > div.oui-card-header-wrapper',
        component: SycmIndustryCustomerPurchasePreferencesApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },

    { // 生意参谋-市场-客群透视 客群分析 客群透视分析
        url: '//sycm.taobao.com/mc/mq/customer_analysis',
        containerSelector: '#customerAnalysis > div.oui-card-header-wrapper',
        component: SycmCustomerAnalysisCustomerGroupApp,
        key: 1,
        insertType: InsertType.prepend,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-客群透视 客群分析 趋势
        url: '//sycm.taobao.com/mc/mq/customer_analysis',
        containerSelector: '#sycm-mc-mq-customer-analysis > div.oui-card-content.alife-one-design-sycm-indexes-trend-card-content > div > div > div > div > div > div > div > div.recharts-legend-wrapper > ul',
        component: SycmCustomerAnalysisCustomerGroupTrendsApp,
        insertType: InsertType.append,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-客群透视 指数换算
        url: '//sycm.taobao.com/mc/mq/customer_analysis',
        containerSelector: '#customerAnalysis > div.oui-card-header-wrapper',
        component: SycmZshsApp,
        key: 2,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索人群-属性画像 指数换算
        url: '//sycm.taobao.com/mc/mq/search_customer',
        containerSelector: '#completeShopPortrait > div.oui-card-header-wrapper',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        key: 1,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#completeShopPortrait');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索人群-属性画像 TOP省份 指数换算
        url: '//sycm.taobao.com/mc/mq/search_customer',
        containerSelector: '#sycm-mq-search-customer-portrait > div > div > div:nth-child(4) > div > div.portrait-title',
        component: SycmZshsApp,
        insertType: InsertType.append,
        interceptions: industryCustomerInterception,
        key: 1,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mq-search-customer-portrait > div > div > div:nth-child(4) > div > .portrait-content');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-市场-搜索人群-属性画像 TOP城市 指数换算
        url: '//sycm.taobao.com/mc/mq/search_customer',
        containerSelector: '#sycm-mq-search-customer-portrait > div > div > div:nth-child(5) > div > div.portrait-title',
        component: SycmZshsApp,
        insertType: InsertType.append,
        interceptions: industryCustomerInterception,
        key: 1,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mq-search-customer-portrait > div > div > div:nth-child(5) .portrait-content');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-市场-搜索人群-属性画像 TOP城市 指数换算
        url: '//sycm.taobao.com/mc/mq/search_customer',
        containerSelector: '#completeShopPortrait > div.oui-card-header-wrapper',
        component: SycmSearchCustomerAttributePortraitApp,
        insertType: InsertType.prepend,
        key: 2,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-竞争品牌-品牌客群 客群趋势 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#sycm-mc-ci-brand-customer-trend > div.oui-card-header-wrapper',
        component: SycmBrandCustomerTrendsApp,
        insertType: InsertType.prepend,
        interceptions: brandCustomerInterception,
        key: 1,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-竞争品牌-品牌客群 属性画像 一键转化
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#completeShopPortrait > div.oui-card-header-wrapper',
        component: SycmBrandCustomerAttributePortraitApp,
        interceptions: brandCustomerInterception,
        insertType: InsertType.prepend,
        key: 1,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-竞争品牌-品牌客群 属性画像 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#completeShopPortrait > div.oui-card-header-wrapper',
        component: SycmZshsApp,
        insertType: InsertType.prepend,
        key: 2,
        style: {
            float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#completeShopPortrait > div.oui-card-content > span > div > div.alife-dt-card-sycm-mc-customer-index > ul');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-竞争品牌-品牌客群 属性画像 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#sycm-mc-ci-brand-customer-property-portrait > div > div > div:nth-child(4) > div > div.portrait-title',
        component: SycmZshsApp,
        insertType: InsertType.append,
        key: 1,
        style: {
            // float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-brand-customer-property-portrait > div > div > div:nth-child(4) > div');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    {
        // 生意参谋-竞争-竞争品牌-品牌客群 属性画像 指数换算
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#sycm-mc-ci-brand-customer-property-portrait > div > div > div:nth-child(5) > div > div.portrait-title',
        component: SycmZshsApp,
        insertType: InsertType.append,
        key: 1,
        style: {
            // float: 'right',
            marginLeft: '10px',
            display: 'inline-block',
        },
        customApp: (app) => {
            app.provide('selectorPix', '#sycm-mc-ci-brand-customer-property-portrait > div > div > div:nth-child(5) > div');
            return app;
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞争品牌-品牌客群-购买偏好
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#completeShopPurchase > div.oui-card-header-wrapper',
        component: SycmBrandBuyerPreferencesApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 生意参谋-竞争-竞争品牌-品牌客群-支付偏好
        url: '//sycm.taobao.com/mc/ci/brand/customer',
        containerSelector: '#completeShopPayment > div.oui-card-header-wrapper',
        component: SycmBrandPayPreferencesApp,
        insertType: InsertType.prepend,
        interceptions: industryCustomerInterception,
        style: {
            float: 'right',
            marginRight: '10px',
            display: 'inline-block',
        },
        platform: Platform.Sycm,
        platformAuth: PlatformAuth.SYCM_REVERT,
    },
    { // 万象台主插件
        url: '//one.alimama.com/index.html',
        containerSelector: '#app',
        component: WxtMainApp,
        insertType: InsertType.append,
        style: {
            position: 'fixed',
            zIndex: 99999,
            right: '5px',
            top: '72px',
        },
        condition: () => {
            return !!document.querySelector("[mx-view^='cross-template/views/pages/layout/user']");
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
    },
    { // 万象台-关键词推广-计划列表
        url: '//one.alimama.com/index.html#!/manage/search',
        containerSelector: '[mx-view^="onebp/views/pages/manage/search/campaign-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '35px',
            right: '420px',
            display: 'inline-block',
        },
        key: 1,
        condition: () => {
            const dom = document.querySelector('[mx-view^="onebp/gallery/mx-tabs/index"]');
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('计划') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '计划列表');
            app.provide('active', 'keywordPromotion');
            app.provide('type', 'plan')
            return app;
        },
    },
    { // 万象台-关键词推广-单元列表
        url: '//one.alimama.com/index.html#!/manage/search',
        containerSelector: '[mx-view^="onebp/views/pages/manage/search/adgroup-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '300px',
            display: 'inline-block',
        },
        key: 2,
        condition: () => {
            const dom = document.querySelector('[mx-view^="onebp/gallery/mx-tabs/index"]');
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('单元') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '单元列表');
            app.provide('active', 'keywordPromotion');
            app.provide('type', 'unit')
            return app;
        },
    },
    { // 万象台-精准人群推广-计划列表
        url: '//one.alimama.com/index.html#!/manage/display',
        containerSelector: '[mx-view^="onebp/views/pages/manage/display/campaign-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '490px',
            display: 'inline-block',
        },
        key: 1,
        condition: () => {
            const dom = document.querySelector('[mx-view^="onebp/gallery/mx-tabs/index"]');
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('计划') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '计划列表');
            app.provide('active', 'accurateCrowdPromotion');
            app.provide('type', 'plan')
            return app;
        },
    },
    { // 万象台-精准人群推广-主体列表
        url: '//one.alimama.com/index.html#!/manage/display',
        containerSelector: '[mx-view^="onebp/views/pages/manage/display/adgroup-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '120px',
            display: 'inline-block',
        },
        key: 2,
        condition: () => {
            const dom = document.querySelector('[mx-view^="onebp/gallery/mx-tabs/index"]');
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('主体') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '主体列表');
            app.provide('active', 'accurateCrowdPromotion');
            app.provide('type', 'unit')
            return app;
        },
    },
    { // 万象台-货品运营-计划列表
        url: '//one.alimama.com/index.html#!/manage/item',
        containerSelector: '[mx-view^="onebp/views/pages/manage/hpjs/campaign-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '250px',
            display: 'inline-block',
        },
        key: 1,
        condition: () => {
            let dom = document.querySelectorAll('[mx-view^="onebp/gallery/mx-tabs/index"]');
            // 获取最后一个
            if (dom.length > 1) {
                dom = dom[dom.length - 1];
            } else {
                return false;
            }
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('计划') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '计划列表');
            app.provide('active', 'goodsOperation');
            app.provide('type', 'plan')
            return app;
        },
    },
    { // 万象台-货品运营-主体列表
        url: '//one.alimama.com/index.html#!/manage/item',
        containerSelector: '[mx-view^="onebp/views/pages/manage/hpjs/adgroup-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '120px',
            display: 'inline-block',
        },
        key: 2,
        condition: () => {
            let dom = document.querySelectorAll('[mx-view^="onebp/gallery/mx-tabs/index"]');
            // 获取最后一个
            if (dom.length > 1) {
                dom = dom[dom.length - 1];
            } else {
                return false;
            }
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('主体') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '主体列表');
            app.provide('active', 'goodsOperation');
            app.provide('type', 'unit')
            return app;
        },
    },
    { // 万象台-消费者运营-计划列表
        url: '//one.alimama.com/index.html#!/manage/customer',
        containerSelector: '[mx-view^="onebp/views/pages/manage/lxk/campaign-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '480px',
            display: 'inline-block',
        },
        key: 1,
        condition: () => {
            let dom = document.querySelectorAll('[mx-view^="onebp/gallery/mx-tabs/index"]');
            // 获取最后一个
            if (dom.length > 1) {
                dom = dom[dom.length - 1];
            } else {
                return false;
            }
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('计划') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '计划列表');
            app.provide('active', 'consumerOperation');
            app.provide('type', 'plan')
            return app;
        },
    },
    { // 万象台-消费者运营-主体列表
        url: '//one.alimama.com/index.html#!/manage/customer',
        containerSelector: '[mx-view^="onebp/views/pages/manage/lxk/adgroup-list"]',
        component: WxtListApp,
        insertType: InsertType.append,
        style: {
            position: 'absolute',
            top: '0px',
            right: '120px',
            display: 'inline-block',
        },
        key: 2,
        condition: () => {
            let dom = document.querySelectorAll('[mx-view^="onebp/gallery/mx-tabs/index"]');
            // 获取最后一个
            if (dom.length > 1) {
                dom = dom[dom.length - 1];
            } else {
                return false;
            }
            const a = dom?.querySelectorAll('a');
            if (typeof a !== 'undefined' && a.length > 0) {
                for (let i = 0; i < a.length; i++) {
                    const classNames = a[i].className.split(' ').filter((item) => item.replaceAll(' ', '') !== '');
                    //删除空字符串
                    if (a[i].innerText.indexOf('主体') > -1 && classNames.length > 1) {
                        return true;
                    }
                }
                return false;
            } else {
                return false;
            }
        },
        platform: Platform.WanXiangTai,
        platformAuth: PlatformAuth.WXT_TOOL,
        customApp: (app) => {
            app.provide('title', '主体列表');
            app.provide('active', 'consumerOperation');
            app.provide('type', 'unit')
            return app;
        },
    },
];
export default renderOptions;
